Skip to content

manually build dev image instead of publishing it every version#4409

Merged
lvhan028 merged 2 commits intoInternLM:mainfrom
lvhan028:docker-ci
Mar 13, 2026
Merged

manually build dev image instead of publishing it every version#4409
lvhan028 merged 2 commits intoInternLM:mainfrom
lvhan028:docker-ci

Conversation

@lvhan028
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 12, 2026 11:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR splits the “dev” Docker image publishing out of the main Docker publish workflow and makes it a manually-triggered workflow, reducing automatic dev image publishes on every version push/tag.

Changes:

  • Add a new docker_dev.yml GitHub Actions workflow that publishes the dev Docker image via workflow_dispatch.
  • Remove the dev image publishing job from docker.yml.
  • Update actions/checkout usage in docker.yml from v3 to v4.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/docker_dev.yml New manual workflow to build/push the dev CUDA 12.8 image.
.github/workflows/docker.yml Removes dev image job; updates actions/checkout to v4 for remaining jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +49 to +53
- name: Build and push Docker image
run: |
echo $TAG
docker build . -f docker/Dockerfile_dev -t ${TAG}
docker push $TAG
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow builds the dev image using docker/Dockerfile_dev, but the previously removed publish_dev_docker_image job built from docker/Dockerfile with --build-arg IMAGE_TYPE=dev (and implicitly different defaults like CUDA_VERSION/PYTHON_VERSION). That changes the contents/behavior of the published dev tag, not just when it’s built. If the goal is only to make the existing dev image manual, consider switching this workflow back to the same Dockerfile/build-args as before; otherwise, please update the PR title/description (and possibly the tag name) to reflect that the dev image definition has changed.

Copilot uses AI. Check for mistakes.
@lvhan028 lvhan028 requested a review from irexyc March 13, 2026 03:28
@lvhan028 lvhan028 merged commit 4c9e86c into InternLM:main Mar 13, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants